<template>
  <div id="app">
    <MyChild :count="count" @add="add" />
  </div>
</template>

<script>
import MyChild from './components/MyChild.vue'

export default {
  name: 'App',
  components: {
    MyChild
  },
  data(){
    return {
      count: 1
    }
  },
  methods: {
    add(){
      this.count++
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
